
func void G_PickLock(var int bSuccess,var int bBrokenOpen)
{
	var int rnd;
	if(bSuccess)
	{
		B_GivePlayerXP(1);
		Snd_Play3d(self,"PICKLOCK_SUCCESS");
		Print(PRINT_PICKLOCK_SUCCESS);
	}
	else if(bBrokenOpen)
	{
		rnd = Hlp_Random(100);
		Snd_Play3d(self,"PICKLOCK_FAILURE");
		Print(PRINT_PICKLOCK_BROKEN);
		if(rnd <= 25)
		{
			Npc_SendPassivePerc(hero,PERC_ASSESSQUIETSOUND,hero,hero);
		};
	}
	else
	{
		Snd_Play3d(self,"PICKLOCK_FAILURE");
		Print(PRINT_PICKLOCK_FAILURE);
	};
};

